package com.woniu.p2p.service;

import com.github.pagehelper.PageInfo;
import com.woniu.p2p.entity.InvestComment;
import com.woniu.p2p.entity.User;
import com.woniu.p2p.entity.UserInvest;
import com.woniu.p2p.vo.*;

import java.util.Date;

public interface InvestDetailsService {

    //根据id查询项目所有
    InvestDetailsVo findAllById(Integer id);
    //增加评论
    int InsertComment(InvestComment investComment);
    //根据id查找用户
    User findAllUserById(Integer id);
    //分页查找评论
    PageInfo<InvestDetailsCommentsVo> findAllCommentById(Integer id,Integer start,Integer size);
    //用户增加 投资
    int insertUserInvest(long dealmoney, double subribe,Date date,Integer userId,Integer InvestId,long money);
    //还款明细的查询
    PageInfo<InvestDetailsReimbVo> findAllInvestDetailsReimbVoBuInvestId(Integer id,Integer start,Integer size);
    //子公司的查询
    PageInfo<InvestDetailsCompanyVo> findAllInvestDetailsCompanyVoByInvestId(Integer id,Integer start,Integer size);
    //根据项目id查看用户的投标记录
    PageInfo<UserInvest> findAllUserTou(Integer start, Integer num, Integer id);

}
